Optimal. Leaf size=176 \[ \frac{1}{8} x^8 \left (a+b \tan ^{-1}\left (c x^3\right )\right )+\frac{\sqrt{3} b \log \left (c^{2/3} x^2-\sqrt{3} \sqrt [3]{c} x+1\right )}{32 c^{8/3}}-\frac{\sqrt{3} b \log \left (c^{2/3} x^2+\sqrt{3} \sqrt [3]{c} x+1\right )}{32 c^{8/3}}+\frac{b \tan ^{-1}\left (\sqrt [3]{c} x\right )}{8 c^{8/3}}-\frac{b \tan ^{-1}\left (\sqrt{3}-2 \sqrt [3]{c} x\right )}{16 c^{8/3}}+\frac{b \tan ^{-1}\left (2 \sqrt [3]{c} x+\sqrt{3}\right )}{16 c^{8/3}}-\frac{3 b x^5}{40 c} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.430877, antiderivative size = 176, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 8, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.571, Rules used = {5033, 321, 295, 634, 618, 204, 628, 203} \[ \frac{1}{8} x^8 \left (a+b \tan ^{-1}\left (c x^3\right )\right )+\frac{\sqrt{3} b \log \left (c^{2/3} x^2-\sqrt{3} \sqrt [3]{c} x+1\right )}{32 c^{8/3}}-\frac{\sqrt{3} b \log \left (c^{2/3} x^2+\sqrt{3} \sqrt [3]{c} x+1\right )}{32 c^{8/3}}+\frac{b \tan ^{-1}\left (\sqrt [3]{c} x\right )}{8 c^{8/3}}-\frac{b \tan ^{-1}\left (\sqrt{3}-2 \sqrt [3]{c} x\right )}{16 c^{8/3}}+\frac{b \tan ^{-1}\left (2 \sqrt [3]{c} x+\sqrt{3}\right )}{16 c^{8/3}}-\frac{3 b x^5}{40 c} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5033
Rule 321
Rule 295
Rule 634
Rule 618
Rule 204
Rule 628
Rule 203
Rubi steps
\begin{align*} \int x^7 \left (a+b \tan ^{-1}\left (c x^3\right )\right ) \, dx &=\frac{1}{8} x^8 \left (a+b \tan ^{-1}\left (c x^3\right )\right )-\frac{1}{8} (3 b c) \int \frac{x^{10}}{1+c^2 x^6} \, dx\\ &=-\frac{3 b x^5}{40 c}+\frac{1}{8} x^8 \left (a+b \tan ^{-1}\left (c x^3\right )\right )+\frac{(3 b) \int \frac{x^4}{1+c^2 x^6} \, dx}{8 c}\\ &=-\frac{3 b x^5}{40 c}+\frac{1}{8} x^8 \left (a+b \tan ^{-1}\left (c x^3\right )\right )+\frac{b \int \frac{1}{1+c^{2/3} x^2} \, dx}{8 c^{7/3}}+\frac{b \int \frac{-\frac{1}{2}+\frac{1}{2} \sqrt{3} \sqrt [3]{c} x}{1-\sqrt{3} \sqrt [3]{c} x+c^{2/3} x^2} \, dx}{8 c^{7/3}}+\frac{b \int \frac{-\frac{1}{2}-\frac{1}{2} \sqrt{3} \sqrt [3]{c} x}{1+\sqrt{3} \sqrt [3]{c} x+c^{2/3} x^2} \, dx}{8 c^{7/3}}\\ &=-\frac{3 b x^5}{40 c}+\frac{b \tan ^{-1}\left (\sqrt [3]{c} x\right )}{8 c^{8/3}}+\frac{1}{8} x^8 \left (a+b \tan ^{-1}\left (c x^3\right )\right )+\frac{\left (\sqrt{3} b\right ) \int \frac{-\sqrt{3} \sqrt [3]{c}+2 c^{2/3} x}{1-\sqrt{3} \sqrt [3]{c} x+c^{2/3} x^2} \, dx}{32 c^{8/3}}-\frac{\left (\sqrt{3} b\right ) \int \frac{\sqrt{3} \sqrt [3]{c}+2 c^{2/3} x}{1+\sqrt{3} \sqrt [3]{c} x+c^{2/3} x^2} \, dx}{32 c^{8/3}}+\frac{b \int \frac{1}{1-\sqrt{3} \sqrt [3]{c} x+c^{2/3} x^2} \, dx}{32 c^{7/3}}+\frac{b \int \frac{1}{1+\sqrt{3} \sqrt [3]{c} x+c^{2/3} x^2} \, dx}{32 c^{7/3}}\\ &=-\frac{3 b x^5}{40 c}+\frac{b \tan ^{-1}\left (\sqrt [3]{c} x\right )}{8 c^{8/3}}+\frac{1}{8} x^8 \left (a+b \tan ^{-1}\left (c x^3\right )\right )+\frac{\sqrt{3} b \log \left (1-\sqrt{3} \sqrt [3]{c} x+c^{2/3} x^2\right )}{32 c^{8/3}}-\frac{\sqrt{3} b \log \left (1+\sqrt{3} \sqrt [3]{c} x+c^{2/3} x^2\right )}{32 c^{8/3}}+\frac{b \operatorname{Subst}\left (\int \frac{1}{-\frac{1}{3}-x^2} \, dx,x,1-\frac{2 \sqrt [3]{c} x}{\sqrt{3}}\right )}{16 \sqrt{3} c^{8/3}}-\frac{b \operatorname{Subst}\left (\int \frac{1}{-\frac{1}{3}-x^2} \, dx,x,1+\frac{2 \sqrt [3]{c} x}{\sqrt{3}}\right )}{16 \sqrt{3} c^{8/3}}\\ &=-\frac{3 b x^5}{40 c}+\frac{b \tan ^{-1}\left (\sqrt [3]{c} x\right )}{8 c^{8/3}}+\frac{1}{8} x^8 \left (a+b \tan ^{-1}\left (c x^3\right )\right )-\frac{b \tan ^{-1}\left (\sqrt{3}-2 \sqrt [3]{c} x\right )}{16 c^{8/3}}+\frac{b \tan ^{-1}\left (\sqrt{3}+2 \sqrt [3]{c} x\right )}{16 c^{8/3}}+\frac{\sqrt{3} b \log \left (1-\sqrt{3} \sqrt [3]{c} x+c^{2/3} x^2\right )}{32 c^{8/3}}-\frac{\sqrt{3} b \log \left (1+\sqrt{3} \sqrt [3]{c} x+c^{2/3} x^2\right )}{32 c^{8/3}}\\ \end{align*}
Mathematica [A] time = 0.0748782, size = 181, normalized size = 1.03 \[ \frac{a x^8}{8}+\frac{\sqrt{3} b \log \left (c^{2/3} x^2-\sqrt{3} \sqrt [3]{c} x+1\right )}{32 c^{8/3}}-\frac{\sqrt{3} b \log \left (c^{2/3} x^2+\sqrt{3} \sqrt [3]{c} x+1\right )}{32 c^{8/3}}+\frac{b \tan ^{-1}\left (\sqrt [3]{c} x\right )}{8 c^{8/3}}-\frac{b \tan ^{-1}\left (\sqrt{3}-2 \sqrt [3]{c} x\right )}{16 c^{8/3}}+\frac{b \tan ^{-1}\left (2 \sqrt [3]{c} x+\sqrt{3}\right )}{16 c^{8/3}}-\frac{3 b x^5}{40 c}+\frac{1}{8} b x^8 \tan ^{-1}\left (c x^3\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.069, size = 170, normalized size = 1. \begin{align*}{\frac{{x}^{8}a}{8}}+{\frac{b{x}^{8}\arctan \left ( c{x}^{3} \right ) }{8}}-{\frac{3\,b{x}^{5}}{40\,c}}-{\frac{b\sqrt{3}}{32\,c} \left ({c}^{-2} \right ) ^{{\frac{5}{6}}}\ln \left ({x}^{2}+\sqrt{3}\sqrt [6]{{c}^{-2}}x+\sqrt [3]{{c}^{-2}} \right ) }+{\frac{b}{16\,{c}^{3}}\arctan \left ( 2\,{\frac{x}{\sqrt [6]{{c}^{-2}}}}+\sqrt{3} \right ){\frac{1}{\sqrt [6]{{c}^{-2}}}}}+{\frac{b\sqrt{3}}{32\,c} \left ({c}^{-2} \right ) ^{{\frac{5}{6}}}\ln \left ( \sqrt{3}\sqrt [6]{{c}^{-2}}x-{x}^{2}-\sqrt [3]{{c}^{-2}} \right ) }+{\frac{b}{16\,{c}^{3}}\arctan \left ( 2\,{\frac{x}{\sqrt [6]{{c}^{-2}}}}-\sqrt{3} \right ){\frac{1}{\sqrt [6]{{c}^{-2}}}}}+{\frac{b}{8\,{c}^{3}}\arctan \left ({x{\frac{1}{\sqrt [6]{{c}^{-2}}}}} \right ){\frac{1}{\sqrt [6]{{c}^{-2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 1.50256, size = 432, normalized size = 2.45 \begin{align*} \frac{1}{8} \, a x^{8} + \frac{1}{160} \,{\left (20 \, x^{8} \arctan \left (c x^{3}\right ) -{\left (\frac{12 \, x^{5}}{c^{2}} + \frac{5 \,{\left (\frac{\sqrt{3} \log \left ({\left (c^{2}\right )}^{\frac{1}{3}} x^{2} + \sqrt{3}{\left (c^{2}\right )}^{\frac{1}{6}} x + 1\right )}{{\left (c^{2}\right )}^{\frac{5}{6}}} - \frac{\sqrt{3} \log \left ({\left (c^{2}\right )}^{\frac{1}{3}} x^{2} - \sqrt{3}{\left (c^{2}\right )}^{\frac{1}{6}} x + 1\right )}{{\left (c^{2}\right )}^{\frac{5}{6}}} - \frac{2 \, \log \left (\frac{{\left (c^{2}\right )}^{\frac{1}{3}} x - \sqrt{-{\left (c^{2}\right )}^{\frac{1}{3}}}}{{\left (c^{2}\right )}^{\frac{1}{3}} x + \sqrt{-{\left (c^{2}\right )}^{\frac{1}{3}}}}\right )}{{\left (c^{2}\right )}^{\frac{2}{3}} \sqrt{-{\left (c^{2}\right )}^{\frac{1}{3}}}} - \frac{{\left (c^{2}\right )}^{\frac{1}{3}} \log \left (\frac{2 \,{\left (c^{2}\right )}^{\frac{1}{3}} x + \sqrt{3}{\left (c^{2}\right )}^{\frac{1}{6}} - \sqrt{-{\left (c^{2}\right )}^{\frac{1}{3}}}}{2 \,{\left (c^{2}\right )}^{\frac{1}{3}} x + \sqrt{3}{\left (c^{2}\right )}^{\frac{1}{6}} + \sqrt{-{\left (c^{2}\right )}^{\frac{1}{3}}}}\right )}{c^{2} \sqrt{-{\left (c^{2}\right )}^{\frac{1}{3}}}} - \frac{{\left (c^{2}\right )}^{\frac{1}{3}} \log \left (\frac{2 \,{\left (c^{2}\right )}^{\frac{1}{3}} x - \sqrt{3}{\left (c^{2}\right )}^{\frac{1}{6}} - \sqrt{-{\left (c^{2}\right )}^{\frac{1}{3}}}}{2 \,{\left (c^{2}\right )}^{\frac{1}{3}} x - \sqrt{3}{\left (c^{2}\right )}^{\frac{1}{6}} + \sqrt{-{\left (c^{2}\right )}^{\frac{1}{3}}}}\right )}{c^{2} \sqrt{-{\left (c^{2}\right )}^{\frac{1}{3}}}}\right )}}{c^{2}}\right )} c\right )} b \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 3.25014, size = 1069, normalized size = 6.07 \begin{align*} \frac{20 \, b c x^{8} \arctan \left (c x^{3}\right ) + 20 \, a c x^{8} - 12 \, b x^{5} - 5 \, \sqrt{3} c \left (\frac{b^{6}}{c^{16}}\right )^{\frac{1}{6}} \log \left (\sqrt{3} b^{5} c^{13} x \left (\frac{b^{6}}{c^{16}}\right )^{\frac{5}{6}} + b^{6} c^{10} \left (\frac{b^{6}}{c^{16}}\right )^{\frac{2}{3}} + b^{10} x^{2}\right ) + 5 \, \sqrt{3} c \left (\frac{b^{6}}{c^{16}}\right )^{\frac{1}{6}} \log \left (-\sqrt{3} b^{5} c^{13} x \left (\frac{b^{6}}{c^{16}}\right )^{\frac{5}{6}} + b^{6} c^{10} \left (\frac{b^{6}}{c^{16}}\right )^{\frac{2}{3}} + b^{10} x^{2}\right ) - 20 \, c \left (\frac{b^{6}}{c^{16}}\right )^{\frac{1}{6}} \arctan \left (-\frac{2 \, b^{5} c^{3} x \left (\frac{b^{6}}{c^{16}}\right )^{\frac{1}{6}} + \sqrt{3} b^{6} - 2 \, \sqrt{\sqrt{3} b^{5} c^{13} x \left (\frac{b^{6}}{c^{16}}\right )^{\frac{5}{6}} + b^{6} c^{10} \left (\frac{b^{6}}{c^{16}}\right )^{\frac{2}{3}} + b^{10} x^{2}} c^{3} \left (\frac{b^{6}}{c^{16}}\right )^{\frac{1}{6}}}{b^{6}}\right ) - 20 \, c \left (\frac{b^{6}}{c^{16}}\right )^{\frac{1}{6}} \arctan \left (-\frac{2 \, b^{5} c^{3} x \left (\frac{b^{6}}{c^{16}}\right )^{\frac{1}{6}} - \sqrt{3} b^{6} - 2 \, \sqrt{-\sqrt{3} b^{5} c^{13} x \left (\frac{b^{6}}{c^{16}}\right )^{\frac{5}{6}} + b^{6} c^{10} \left (\frac{b^{6}}{c^{16}}\right )^{\frac{2}{3}} + b^{10} x^{2}} c^{3} \left (\frac{b^{6}}{c^{16}}\right )^{\frac{1}{6}}}{b^{6}}\right ) - 40 \, c \left (\frac{b^{6}}{c^{16}}\right )^{\frac{1}{6}} \arctan \left (-\frac{b^{5} c^{3} x \left (\frac{b^{6}}{c^{16}}\right )^{\frac{1}{6}} - \sqrt{b^{6} c^{10} \left (\frac{b^{6}}{c^{16}}\right )^{\frac{2}{3}} + b^{10} x^{2}} c^{3} \left (\frac{b^{6}}{c^{16}}\right )^{\frac{1}{6}}}{b^{6}}\right )}{160 \, c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.39375, size = 231, normalized size = 1.31 \begin{align*} -\frac{1}{32} \, b c^{15}{\left (\frac{\sqrt{3}{\left | c \right |}^{\frac{1}{3}} \log \left (x^{2} + \frac{\sqrt{3} x}{{\left | c \right |}^{\frac{1}{3}}} + \frac{1}{{\left | c \right |}^{\frac{2}{3}}}\right )}{c^{18}} - \frac{\sqrt{3}{\left | c \right |}^{\frac{1}{3}} \log \left (x^{2} - \frac{\sqrt{3} x}{{\left | c \right |}^{\frac{1}{3}}} + \frac{1}{{\left | c \right |}^{\frac{2}{3}}}\right )}{c^{18}} - \frac{2 \,{\left | c \right |}^{\frac{1}{3}} \arctan \left ({\left (2 \, x + \frac{\sqrt{3}}{{\left | c \right |}^{\frac{1}{3}}}\right )}{\left | c \right |}^{\frac{1}{3}}\right )}{c^{18}} - \frac{2 \,{\left | c \right |}^{\frac{1}{3}} \arctan \left ({\left (2 \, x - \frac{\sqrt{3}}{{\left | c \right |}^{\frac{1}{3}}}\right )}{\left | c \right |}^{\frac{1}{3}}\right )}{c^{18}} - \frac{4 \,{\left | c \right |}^{\frac{1}{3}} \arctan \left (x{\left | c \right |}^{\frac{1}{3}}\right )}{c^{18}}\right )} + \frac{5 \, b c x^{8} \arctan \left (c x^{3}\right ) + 5 \, a c x^{8} - 3 \, b x^{5}}{40 \, c} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]